package com.wanglei.service;

import com.wanglei.domain.ResponseResult;
import com.wanglei.domain.dto.RoleDto;
import com.wanglei.domain.entity.Role;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author MrWang
* @description 针对表【sys_role(角色信息表)】的数据库操作Service
* @createDate 2023-07-10 16:15:53
*/
public interface RoleService extends IService<Role> {

    List<String> selectRolesByUserId(Long id);

    ResponseResult roleList(Integer pageNum, Integer pageSize, String roleName, String status);

    ResponseResult changeStatus(RoleDto roleDto);

    ResponseResult addMenu(Role role);

    ResponseResult getRoleById(Long id);

    ResponseResult updateRole(Role role);

    ResponseResult deleteRole(Long id);

    ResponseResult listAllRole();
}
